package com.example.demo;

public class AgentTest2 {
    public void fun1() throws Exception {
        System.out.println("this is fun 1.");
        Thread.sleep(500);
    }

    public void fun2() throws Exception {
        System.out.println("this is fun 2.");
        Thread.sleep(500);
    }


    // add VM options: -javaagent:./first-bytebuddy/target/my-agent.jar
    public static void main(String[] args) throws Exception {
        System.out.println(System.getProperty("user.dir"));
        AgentTest2 test = new AgentTest2();
        test.fun1();
        test.fun2();

    }
}
